/*
 * @Author: WangZhongDe
 * @Date: 2021-08-27 16:46:28
 * @LastEditors: WangZhongDe
 * @LastEditTime: 2021-08-27 17:27:23
 * @FilePath: \rust\learn4\src\main.rs
 */
use std::fs::File;
fn main() {
//    let f = File::open("hello.txt");
//    let _f = match f{
//        Ok(file) => file,
//         Err(error) =>{
//             panic!("Error opening file {:#?}",error)
//         },
//    };
   
   let _str = File::open("foo.txt").expect("open file fail");
  
}
